package Extends.ExtendsText005;

/**
 * ClassName:Text
 * Package:Extends.ExtendsText005
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/20-2:35
 * @Version:v1.0
 */
public class Text {
    public static void main(String[] args) {

        Manager m = new Manager("2250712435","张鑫",7230,8008);
//        m.setId("2250712435");
//        m.setName("张鑫");
//        m.setSalary(7230);
//        m.setBonus(2000);
        System.out.println(m.getId()+" "+m.getName()+" "+ m.getBonus() +" "+m.getSalary());
        m.Eat();
        m.work();
        System.out.println("===============");
        Cook c=new Cook();
        c.setName("阿伟");
        c.setId("2250712736");
        c.setSalary(5800);
        c.Eat();
        c.work();
    }
}
